package system_design.home.shiti;

public class Goods {
    private int goodsNum;
    private String goodsName;
    private double goodsPay;
    private int goodsSum;

    public Goods(int goodsNum,String goodsName,double goodsPay,int goodsSum){
        this.goodsNum = goodsNum;
        this.goodsName = goodsName;
        this.goodsPay = goodsPay;
        this.goodsSum = goodsSum;
    }

    public int getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(int goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public double getGoodsPay() {
        return goodsPay;
    }

    public void setGoodsPay(double goodsPay) {
        this.goodsPay = goodsPay;
    }

    public int getGoodsSum() {
        return goodsSum;
    }

    public void setGoodsSum(int goodsSum) {
        this.goodsSum = goodsSum;
    }

    public String toString(){
        return this.goodsNum+" "+this.goodsName+" "+this.goodsPay+" "+this.goodsSum;
    }
}
